import 'package:flutter/material.dart';
import 'demo/Home.dart';
import 'demo/Basic.dart';
import 'demo/FormDemo.dart';
import 'demo/ListView.dart';
import 'demo/ViewDemo.dart';
import 'demo/LayoutDemo.dart';
import 'demo/LeftDrawer.dart';
import 'demo/DefaultTabCtrl.dart';
import 'demo/SliverDemo.dart';
import 'demo/MaterialComponents.dart';

import 'demo/NavigatorDemo.dart';

void main() {
  runApp(
    App()
  );
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      // debugShowCheckedModeBanner: false,
      // home: NavigatorDemo(),
      initialRoute: '/mdc',
      routes: {
        '/': (context) => ListViewDemo(),
        '/About': (context) => Page(title: 'About'),
        '/FormDemo': (context) => FormDemo(),
        '/mdc': (context) => MaterialComponents(),
      },
      theme: ThemeData(
        primaryColor: Colors.white,
        highlightColor: Color(0x80FFFFFF),
        splashColor: Colors.white10,
      ),
    );
  }
}

